package com.lb.design.pattern.singleton.hungry;

/**
 * @author lb
 * @Title: HungrySingleton
 * @Description: 饿汉单例
 * @date 2019/03/11  20:16
 */
public class HungrySingleton {

    private static final HungrySingleton hungrySingleton = new HungrySingleton();

    private HungrySingleton() {

    }
    public static HungrySingleton getInstance(){
        return hungrySingleton;
    }
}
